/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-11-04
 * Time: 9:49
 */
public class TestSingleLinkedList {
    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        singleLinkedList.addLast(1);
        singleLinkedList.addLast(2);
        singleLinkedList.addLast(1);
        singleLinkedList.addLast(4);
        singleLinkedList.addLast(1);
        singleLinkedList.addLast(6);
        singleLinkedList.addLast(1);
        singleLinkedList.display();
        System.out.println();
        singleLinkedList.addIndex(100,11);
        singleLinkedList.display();
        System.out.println();
        System.out.println(singleLinkedList.size());
        System.out.println("==========================================");
        singleLinkedList.remove(7);
        singleLinkedList.display();
        System.out.println();
        System.out.println("==========================================");
        singleLinkedList.removeAllKey(1);
        singleLinkedList.display();
    }
}
